<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>kotlin kit</title>
</head>
<body>
<%--<%--%>
    <%--cn.Demo j = new Demo();--%>
    <%--cn.KDemo k = new KDemo();--%>

    <%--response.getWriter().print(j.run());--%>
    <%--response.getWriter().print(k.hello());--%>

<%--%>--%>

<div style="display:block">
    <label for="count_id">Enter number of elements to fetch:</label>
    <input id="count_id" name="count" value="1"/>
</div>
<button id="button_id" type="button" style="display:block">Submit</button>
<textarea id="textarea_id" style="width: 100%; height: 200px">
</textarea>

<div id="container">
</div>

<div id="injectid">
</div>

<!--
<script src="js/lib/kotlin.js"></script>
<script src="js/lib/kotlinx-html-js.js"></script>
<script src="js/lib/jquery-3.1.0.min.js"></script>
<script src="js/cn/app.js"></script>
-->
<script src="js/lib/require.js"></script>
<script type="application/javascript">
    require.config({
        baseUrl: "js/cn/",
        paths: {
            'kotlin': '../lib/kotlin',
            'kotlinx-html-js': '../lib/kotlinx-html-js',
            'jquery': '../lib/jquery-3.1.0.min'
        }
    });

    var rootClassName = "app"
    require(rootClassName.indexOf(",") ? rootClassName.split(",") : [rootClassName], function () {
        console.log("requireJS Module " + rootClassName);
    }, function () {
        console.log("module fail")
    });
</script>
</body>
</html>
